<?php
class templates_m_email extends a_base_model_datamapper{
    
    public function __construct($id=NULL){
        $this->table = "email_templates";
        parent:: __construct($id);
    }

    public function get_module_name(){
        $parts =  explode(":", $this->file_location);
        return $parts[0];
    }

    public function get_folder_name(){
        $parts =  explode(":", $this->file_location);
        return $parts[1];
    }
}
?>